﻿#include<stdio.h>
#pragma warning(disable:4996)
int main()
{
	char buf[20];
	sscanf("afj15#shajdni@sdjh45", "%*[^#]#%[^@]", buf);//%*[^#]跳过非#的字符从#开始获取到@结束
	printf("buf=%s\n", buf);
	return 0;
}